  <?php echo $this->smarty_insert_scripts(array('files'=>'xwmoban.js')); ?>
<div id="qq_category">
				
                 <div class="ul_1">
                 <?php $_from = $this->_var['categories']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'cat');$this->_foreach['my_cat_tree'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['my_cat_tree']['total'] > 0):
    foreach ($_from AS $this->_var['cat']):
        $this->_foreach['my_cat_tree']['iteration']++;
?>
                
                   	<div class="li_1">
                        <img class="img-ico" src="themes/default/images/red/ico6.gif"> 
                        <span class="qq_item"><a href="<?php echo $this->_var['cat']['url']; ?>"><?php echo htmlspecialchars($this->_var['cat']['name']); ?></a></span>
                    	
                        <span class="fly"></span>
                        <ul class="ul_2">
                    	<?php $_from = $this->_var['cat']['cat_id']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'child');if (count($_from)):
    foreach ($_from AS $this->_var['child']):
?>
                         <li>
                         	<h4><a  href="<?php echo $this->_var['child']['url']; ?>"><?php echo htmlspecialchars($this->_var['child']['name']); ?></a></h4>
                            <?php $_from = $this->_var['child']['cat_id']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'child3');if (count($_from)):
    foreach ($_from AS $this->_var['child3']):
?>
                            	<a class="aa3"  href="<?php echo $this->_var['child3']['url']; ?>"><?php echo htmlspecialchars($this->_var['child3']['name']); ?></a>
                            <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
                         
                         </li>
                         
      					<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
                    </ul>
                    </div> 
               
                 <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
                  </div>
</div>  

<script type="text/javascript">
	qq_menu();
</script>